package org.syyo.admin.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Auther: wangzhong
 * @Date: 2019/9/30 17:15
 * @Description: 状态枚举
 */
@AllArgsConstructor
@Getter
public enum ResultEnum {

    OK(20000, "成功"),
    FAIL(9999, "失败"),
    URI_ERROR(404, "路劲错误"),
    NOT_NULL(90000, "参数不能为空"),
    ACCOUNT_NOT_ACTIVATE(90001, "该账号被禁用，请联系管理员解除！"),
    FILE_NOT_EXISTED(90002, "文件不存在"),
    NOT_AUTH(90003, "您没有该功能的权限，请联系管理员！"),
    ACCOUNT_NOT_LOGIN(90004, "该账号不能在后台登录，请联系管理员！"),

    USER_ADD_FAIL(80001, "用户添加失败"),
    USER_EXIST(80002, "用户已存在"),
    USER_DEL_FAIL(80003, "用户删除失败"),
    USER_UPDATE_FAIL(80004, "用户修改失败"),
    USER_NOT_EXIST(80005, "用户id不存在"),
    USER_OR_PASSWORD_ERROR(80000, "用户账号或密码错误"),

    ROLE_ADD_FAIL(80006, "角色添加失败"),
    ROLE_EXIST(80007, "角色已存在"),
    ROLE_DEL_FAIL(80008, "角色删除失败"),
    ROLE_UPDATE_FAIL(80009, "角色修改失败"),
    ROLE_AUTH_FAIL(80010, "角色授权失败"),
    ROLE_NOT_EXIST(80011, "角色id不存在"),

    MENU_ADD_FAIL(80012, "菜单添加失败"),
    MENU_EXIST(80013, "菜单已存在"),
    MENU_DEL_FAIL(80014, "菜单删除失败"),
    MENU_UPDATE_FAIL(80015, "菜单修改失败"),
    MENU_NOT_EXIST(80016, "菜单id不存在"),
    MENU_PID_NOT_SELF(80017, "父级id不能是自己"),


    PLACEHOLDER(null, null);// 占位符,方便快速编写代码（无其他业务作用）

    private Integer code;
    private String message;


}
